package com.example.booklist.test;

import com.example.booklist.model.BookInfo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class test1 {
    @RequestMapping("/t1")
    public Integer t1() {
        int a = 1/0;
        return 124;
    }
    @RequestMapping("/t2")
    public String t2() {
        String s = null;
        s.length();
        return "fail";
    }
    @RequestMapping("/t3")
    public BookInfo t3() {
        return new BookInfo();
    }
    @RequestMapping("/t4")
    public boolean t4() {
        return true;
    }
    @RequestMapping("/t5")
    public double t5() {
        return 12.4;
    }
}
